import request from '@/utils/request'
import { download } from '@/utils/request'

// 删除会员普通题库管理
export function delPTT(id) {
  return request({
    url: '/businessCore/faUserOrdinaryAnswer/' + id,
    method: 'delete'
  })
}

// 导出会员普通题库管理
export function exportPTT(params, fileName) {
  const url = '/businessCore/faUserOrdinaryAnswer/export'
  download(
    url,
    params,
    fileName + `_${new Date().getTime()}.xlsx`
  )
}